package com.enhinck.dbutilweb.model.vo;

import com.enhinck.dbutilweb.common.constant.EnvEnum;
import com.enhinck.dbutilweb.common.constant.MasterSlaveEnum;
import com.enhinck.dbutilweb.model.BaseVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 数据源表
 *
 * @author enhinck Generate auto created
 * @date 2021-03-03 10:52:04
 */
@Data
@ApiModel("数据源表VO")
public class DatasourceConfVO extends BaseVO {
    private static final long serialVersionUID = -4542037945608445320L;
    @ApiModelProperty(value = "主键")
    private Integer id;
    @ApiModelProperty(value = "服务名")
    private String name;
    @ApiModelProperty(value = "驱动名")
    private String driverClassName;
    @ApiModelProperty(value = "数据库连接地址")
    private String url;
    @ApiModelProperty(value = "账号")
    private String username;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreate;
    @ApiModelProperty(value = "更新")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtUpdate;
}